package cn.stronglink.asset.module.sys.user.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.User;

public interface UserMapper {

	public List<User> getUserByParams(Pagination page,User user);

	public User login(User user);

	public void insertUser(User user);

	public User getUserByAccount(String account);

	public void delUser(Long id);

	public User qryUserById(Long id);

	public List<Long> getUserRoleIds(Long id);

	public void updateUser(User user);

	public void delRoles(User user);

	public List<User> qryAllUser();

	public void updatePassword(User user);

	public User qryPassUserById(Long userId);

	public List<User> qryUserByDept(@Param("params") Map<String, Object> params);

}
